/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package projeto.voztg.pkg2.pkg0;

/**
 *
 * @author nascimento lima
 */

public class Phoneme {

	private String phoneme;
	private int time;
	private double frequency;
	
	public Phoneme(String phoneme) {
		this.phoneme = phoneme;
		this.time =0;
		this.frequency =0;
	}
	
	public String showPhoneme() {
		StringBuilder sb = new StringBuilder();
		sb.append(this.phoneme);
		sb.append(" ");
		sb.append(this.time);
		sb.append(" 100 ");
		sb.append(this.frequency);
		sb.append("\n");
		
		return sb.toString();
	}
	
	public void parsePhoneme(double frequency, int time) {
		/*this.frequency = frequency;
		this.time = time;*/
                this.frequency = 300;
		this.time =120;
	}

	public String getPhoneme() {
		return phoneme;
	}

	public int getTime() {
		return time;
	}

	public double getFrequency() {
		return frequency;
	}

	public void setTime(int time) {
		this.time = time;
	}

	public void setFrequency(double frequency) {
		this.frequency = frequency;
	}
}
